// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** deleteRecord POST /api/file/delete */
export async function deleteRecordUsingPOST(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/file/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listRecordByPage POST /api/file/list/page */
export async function listRecordByPageUsingPOST(
  body: API.FileRecordQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageFileRecord_>('/api/file/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listRecordVOByPage POST /api/file/list/page/vo */
export async function listRecordVOByPageUsingPOST(
  body: API.FileRecordQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageFileRecordVO_>('/api/file/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateRecord POST /api/file/update */
export async function updateRecordUsingPOST(
  body: API.FileRecordUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/file/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
